package com.cloud.DrugManagement.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zhozixiong
 * @date 2023/02/13
 */
@TableName
@ApiModel(description = "入库单头")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReceiptHeader {
    @TableId
    @ApiModelProperty("订单编号")
    private Long oid;
    @ApiModelProperty("入库时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date warehousingTime;
    @ApiModelProperty("签收人")
    private String signee;

    public ReceiptHeader(ReceiptHeader receiptHeader) {
        this.oid = receiptHeader.getOid();
        this.signee = receiptHeader.getSignee();
        this.warehousingTime = receiptHeader.getWarehousingTime();
    }
}
